package info.carl.jgdt.beans;

public class Task {
    private Integer id;
    private String project;
    private String context;
    private String description;

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    @Override
    public String toString(){
        return String.valueOf(id) + " - "  + this.getDescription();
    }
    
    @Override
    public boolean equals(Object o){
        if (o == null) return false;
        Task task = (Task)o;
        return (task.getId().equals(this.getId()));
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
